<%@page language="java" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>职位发布登记</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <link href="../../css/mine.css" type="text/css" rel="stylesheet">
    </head>

    <body>

         <div class="div_head">
            <span>
                <span style="float:left">当前位置是：职位发布管理-》职位发布登记</span>
                <span style="float:right;margin-right: 8px;font-weight: bold">
                    <a style="text-decoration: none" href="list.html">【返回】</a>
                </span>
            </span>
        </div>
        <div></div>

        <div style="font-size: 13px;margin: 10px 5px">
            <form action="/zhaopin/demo1/update" method="post">
            <table border="1" width="100%" class="table_a">
                <tr>
                    <td width="120px;">部门<span style="color:red">*</span>：</td>
                    <td>
                        <select name="deptid">
                        <option value="-1">请选择</option>
                        <c:forEach items="${depts}" var="dep">
                            <option value="${dep.deptid}" ${dep.deptid==pos.deptid?"selected":""}>${dep.deptname}</option>
                        </c:forEach>
					</select>
                    </td>
                </tr>
                <tr>
                    <td>招聘类型<span style="color:red">*</span>：</td>
                    <td>
                     <select name="leixing">
						<option ${pos.leixing=="校园招聘"?"selected":""}>校园招聘</option>
						<option ${pos.leixing=="社会招聘"?"selected":""}>社会招聘</option>
					 </select>
                    </td>
                </tr>
               
                <tr>
                    <td>招聘人数<span style="color:red">*</span>：</td>
                    <td>
						<input type="text" name="neednum" value="${pos.neednum}"/></td>
                </tr>
                <tr>
                    <td>职位名称<span style="color:red">*</span>：</td>
                    <td>
						<input type="text"  name="positionname" value="${pos.positionname}"/>
					</td>
                </tr>
				<tr>
                    <td>职位编码<span style="color:red">*</span>：</td>
                    <td>
                        <input type="hidden" name="positionid" value="${pos.positionid}"/>
						<input type="text"  name="pnum" value="${pos.pnum}"/>
					</td>
                </tr>
				<tr>
                    <td>职位分类<span style="color:red">*</span>：</td>
                    <td>
						<select name="positiongroupid">
                            <option value="-1">请选择</option>
                            <c:forEach items="${groups}" var="po">
                                <option value="${po.positiongroupid}" ${pos.positiongroupid==po.positiongroupid?"selected":""}>${po.positiongroupname}</option>
                            </c:forEach>
                        </select>
					</td>
                </tr>
				<tr>
                    <td>登记人<span style="color:red">*</span>：</td>
                    <td>
						<input type="text"  name="regpeople" value="${pos.regpeople}"/>
					</td>
                </tr>
                <tr>
                    <td>登记时间<span style="color:red">*</span>：</td>
                    <td>
                        <input type="text" name="regdate"
                               value="<fmt:formatDate value="${pos.regdate}" pattern="yyyy-MM-dd"></fmt:formatDate>"/>
                    </td>
                </tr>
<tr>
                    <td>截止时间<span style="color:red">*</span>：</td>
                    <td>
                        <input type="text" name="enddate"
                               value="<fmt:formatDate value="${pos.enddate}" pattern="yyyy-MM-dd"></fmt:formatDate>"/>
                    </td>
                </tr>

				<tr>
                    <td>职位描述<span style="color:red">*</span>：</td>
                    <td>
                       <textarea name="des" cols="70" rows="12">
                           ${pos.des}
					   </textarea>
                    </td>                
                </tr>

				<tr>
                    <td>招聘要求<span style="color:red">*</span>：</td>
                    <td>
                       <textarea name="need" cols="70" rows="12">
                           ${pos.need}
					   </textarea>
                    </td>                
                </tr>
				
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value=" 修改 ">
						<input type="reset" value=" 返回 ">
                    </td>
                </tr>  
            </table>
            </form>
        </div>
    </body>
</html>